<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
        {yun:}include file="$lietoustyle/public.htm"{/yun}
    </head>

    <body>
        {yun:}include file="$lietoustyle/header.htm"{/yun}
        <script src="{yun:}$config.sy_weburl{/yun}/js/binding.js?v={yun:}$config.cachecode{/yun}"></script>
        <!--内容部分content-->
        <div class="m_content">
            <div class="wrap">
                {yun:}include file="$lietoustyle/left.htm"{/yun}
                <div class="m_inner_youb fl">
                 <div class="lt_m_tit"><span class="lt_m_tit_s">认证管理</span></div>
                    <div class="m_youb_rech01">
                        {yun:}if $member.setname==1{/yun}
                        <div class="Binding_hint"><span class="Binding_hint_left">您有一次修改账户名的机会<b>（仅限一次）</b></span>
                            <a href="index.php?c=setname">立即修改</a>
                        </div>
                        {yun:}/if{/yun}
                        <div class="m_youb_rech">
                            {yun:}if $lt.moblie_status==1{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_sj"></i></div>
                            <div class="yz_name">绑定手机</div>
                            <div class="yz_name_qs"><em class="c30">{yun:}$lt.moblie{/yun}</em> 绑定后可使用<br>该手机登录账号或找回密码</div>
                            <div class="">
                                <a href="javascript:void(0)" onClick="layer_del('确定要取消绑定？','index.php?c=binding&act=del&type=moblie');" class="yz_bd_bth_qx">取消绑定</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="yz_icon_box"><i class="yz_icon yz_icon_sj"></i></div>
                            <div class="yz_name">绑定手机</div>
                            <div class="yz_name_qs"><em class="c30">{yun:}$lt.moblie{/yun}</em> 绑定后可使用<br>该手机登录账号或找回密码</div>
                            <div class="">
                                <a href="javascript:getshow('moblie','绑定手机号码');" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}/if{/yun}
                            <div class="clear"></div>
                        </div>
                        <div class="m_youb_rech">
                            {yun:}if $lt.email_status==1{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_yx"></i></div>
                            <div class="yz_name">邮箱验证</div>
                            <div class="yz_name_qs"><em class="c30">{yun:}$lt.email{/yun}</em> 邮箱已验证<br>可以通过邮箱随时取回账户密码。</div>
                            <div class="">
                                <a href="javascript:void(0)" onClick="layer_del('确定要取消绑定？','index.php?c=binding&act=del&type=email');" class="yz_bd_bth_qx">取消绑定</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="yz_icon_box"><i class="yz_icon yz_icon_yx"></i></div>
                            <div class="yz_name">邮箱验证</div>
                            <div class="yz_name_qs"><em class="c30">{yun:}$lt.email{/yun}</em> 邮箱验证后<br>可以通过邮箱随时取回账户密码。</div>
                            <div class="">
                                <a href="javascript:getshow('email','绑定邮箱');" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}/if{/yun}
                            <div class="clear"></div>
                        </div>

                        <div class="m_youb_rech">
                            {yun:}if $lt.yyzz_status==1{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_zy"></i></div>
                            <div class="yz_name">职业资格</div>
                            <div class="yz_name_qs">已验证职业资格<br>发布职位吧</div>
                            <div class="">
                                <a href="javascript:getyyzzlt('上传职业资格','600','300');" class="yz_bd_bth" style="background:#396">重新上传</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="yz_icon_box "><i class="yz_icon yz_icon_zy"></i></div>
                            <div class="yz_name">职业资格</div>
								{yun:}if !empty($cert){/yun} 
									{yun:}if $cert.status==2{/yun}
									<div class="yz_name_qs">审核未通过<br>&nbsp;
										{yun:}if $cert.statusbody{/yun}原因：{yun:}$cert.statusbody{/yun}{yun:}/if{/yun}</div>
									<div class=" ">
										<a href="javascript:getyyzzlt('上传职业资格','600','350');" class="yz_bd_bth " style="background:#396">重新上传</a>
									</div>
									{yun:}else{/yun}
									<div class="yz_name_qs">职业资格已上传<br>请等待管理员审核</div>
									<div class="">
										<a href="javascript:getyyzzlt('上传职业资格','600','350');" class="yz_bd_bth">重新上传</a>
									</div>
									{yun:}/if{/yun} 
								{yun:}else{/yun}
								<div class="yz_name_qs">当前未上传职业资格<br>可能会影响您的招聘效果</div>
								<div class="">
									<a href="javascript:getyyzzlt('上传职业资格','600','350');" class="yz_bd_bth">未验证</a>
								</div>
								{yun:}/if{/yun} 
							{yun:}/if{/yun}

                            <div class="clear"></div>
                        </div>
                        {yun:}if $config.sy_qqlogin=='1'{/yun}
                        <div class="m_youb_rech">
                            {yun:}if $member.qqid!=""{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_qq"></i></div>
                            <div class="yz_name">绑定QQ</div>
                            <div class="yz_name_qs">已绑定QQ号<br>可使用QQ快速登录</div>
                            <div class="">
                                <a href="javascript:void(0)" onClick="layer_del('确定要取消绑定？','index.php?c=binding&act=del&type=qqid');" class="yz_bd_bth_qx">取消绑定</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="yz_icon_box"><i class="yz_icon yz_icon_qq"></i></div>
                            <div class="yz_name">绑定QQ</div>
                            <div class="yz_name_qs">未绑定QQ号 授权绑定后
                                <br>可使用QQ快速登录
                            </div>

                            <div class="">
                                <a href="{yun:}url m=qqconnect  login=1{/yun}" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}/if{/yun}
                            <div class="clear"></div>
                        </div>
                        {yun:}/if{/yun}
                        {yun:}if $config.sy_sinalogin=='1'{/yun}
                        <div class="m_youb_rech">
                            {yun:}if $member.sinaid{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_sina"></i></div>
                            <div class="yz_name">新浪微博</div>
                            <div class="yz_name_qs">已绑定新浪微博<br>可使用新浪微博快速登录</div>
                            <div class="">
                                <a href="javascript:void(0)" onClick="layer_del('确定要取消绑定？','index.php?c=binding&act=del&type=sinaid');" class="yz_bd_bth_qx">取消绑定</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="yz_icon_box"><i class="yz_icon yz_icon_sina"></i></div>
                            <div class="yz_name">新浪微博</div>
                            <div class="yz_name_qs">未绑定新浪微博授权绑定后<br>可使用新浪微博快速登录</div>
                            <div class="">
                                <a href="{yun:}url m=sinaconnect login=1{/yun}" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}/if{/yun}
                            <div class="clear"></div>
                        </div>
                        {yun:}/if{/yun}
                        <div class="m_youb_rech fl">

                            {yun:}if $member.wxopenid|| $member.wxid{/yun}
                            <div class="yz_icon_box yz_icon_box01"><i class="yz_icon yz_icon_wx"></i></div>
                            <div class="yz_name">绑定微信</div>
                            <div class="yz_name_qs">已绑定微信<br>可使用微信扫描登录</div>
                            <div class="">
                                <a href="javascript:void(0)" onClick="layer_del('确定要取消绑定？','index.php?c=binding&act=del&type=wxid');" class="yz_bd_bth_qx">取消绑定</a>
                            </div>

                            {yun:}else{/yun}
                            <div class="yz_icon_box "><i class="yz_icon yz_icon_wx"></i></div>
                            <div class="yz_name">绑定微信</div>
                            <div class="yz_name_qs">未绑定微信授权绑定后<br>可使用微信扫描登录</div>
                            {yun:}if $config.wx_author!='1'{/yun}
                            <div class="">
                                <a href="javascript:void(0)" onclick="layer.msg('对不起，微信绑定已关闭！', 2, 8);return false;" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}else{/yun}
                            <div class="">
                                <a href="javascript:void(0)" onclick="wxshow();" class="yz_bd_bth">立即绑定</a>
                            </div>
                            {yun:}/if{/yun} {yun:}/if{/yun}
                        </div>
                        <div class="clear"></div>

                    </div>

                </div>
                <div class="clear"></div>
            </div>

        </div>
        <div class="clear"></div>
        </div>
        <!--内容结束-->
        <!--绑定邮箱弹出框-->
        <div id="email" style="display:none;">
            <div class="Binding_pop_box" style="padding:10px;width:480px;height:255px; background:#fff">
                <div class="Binding_pop_box_msg">修改后的邮箱将作为新的登录账号</div>
                <div style="padding:20px 0">
                    <div class="Binding_pop_box_list"><span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>新的邮箱：</span>
                        <input type="text" name="email" class="Binding_pop_box_list_text Binding_pop_box_list_textw200" /></div>
                    <div class="Binding_pop_box_list"><span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>验证码：</span>
                        <input type="text" name="email_code" class="Binding_pop_box_list_text" style="width:100px;" />
                        <img id="vcode_img" src="../app/include/authcode.inc.php" style=" margin:0 5px 5px 5px; vertical-align:middle;" />
                        <a href="javascript:void(0);" onclick="checkCode('vcode_img');">看不清</a>
                    </div>
                    <div class="Binding_pop_sub" style="margin-top:20px;">
                        <span class="Binding_pop_box_list_left">&nbsp;</span>
                        <input class="xubox_botton_emali" type="submit" onclick="sendbemail('vcode_img');" value="发送" />
                        <input class="xubox_botton_emali  xubox_botton_emali_qx" type="button" value="取消" onclick="layer.close($('#layindex').val());" />
                    </div>
                </div>
            </div>
        </div>
        <!--弹出框 end-->

        <!--绑定手机弹出框-->
        <div id="moblie" style=" display:none;">
            <div class="Binding_pop_box" style="padding:10px;width:480px;overflow:auto; background:#fff;">
                <div class="Binding_pop_box_msg">绑定完成后，您可以使用该手机号码登录账号、找回密码</div>
                <div style="padding:20px 0">
                    <div class="Binding_pop_box_list"><span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>手机号码：</span>
                        <input type="text" name="moblie" class="Binding_pop_box_list_text Binding_pop_box_list_textw200" /></div>
						<div class="Binding_pop_box_list"><span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>验证码：</span>
						<input type="text" name="phoneimg_code" maxlength="4" class="Binding_pop_box_list_text" />
						<img id="pcode_img" onclick="checkCode('pcode_img');" src="{yun:}$config.sy_weburl{/yun}/app/include/authcode.inc.php" style=" margin:0 5px 5px 5px; vertical-align:middle;">
						
					</div>
                    <div class="Binding_pop_box_list"><span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>短信验证码：</span>
                        <input type="text" id="moblie_code" class="Binding_pop_box_list_text" style="width:90px;" />
                        <a href="javascript:;" onclick="sendmoblie('pcode_img');" class="Binding_pop_bth" id="time">免费获取短信</a>
                    </div>
                    <div class="Binding_pop_sub" style="margin-top:20px;">
                        <span class="Binding_pop_box_list_left">&nbsp;</span>
                        <input class="xubox_botton_emali" onclick="check_moblie();" type="submit" value="保存" />
                        <input class="xubox_botton_emali xubox_botton_emali_qx" type="button" value="取消" onclick="layer.close($('#layindex').val());" />
                    </div>
                </div>
            </div>
        </div>
        <!--弹出框 end-->

        <!--营业执照弹出框-->
        <div id="yyzz" style=" display:none;">
            <div class="Binding_pop_box" style="padding:10px;width:370px;height:200px; background:#fff;">
                <div class="Binding_pop_box_msg">职业资格验证，有利于更好的招聘人才</div>
                <div>
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form id="certform" name="MyForm" target="supportiframe" method="post" action="index.php?c=binding&act=savecert" enctype="multipart/form-data">
                        <div class="fl" style="width:100%;">
                            <div class="Binding_pop_box_list" style="width:250px;">
                                <span class="Binding_pop_box_list_left"><i class="Binding_pop_box_list_left_i">*</i>职业资格：</span>
                                <button type="button" class="yun_bth_pic noupload" lay-data="{imgid: 'imgicon',parentid: 'imgparent'}">上传图片</button>
                                <input type="hidden" id="laynoupload" value="1"/>
								<input type="hidden" id="old_cert" value="{yun:}$cert.old_check{/yun}" />
                                <div class="Binding_pop_box_list" style="width:250px;">
                                    <span class="Binding_pop_box_list_left"></span>
                                    <input class="xubox_botton_emali" onclick="check_lt_cert()" type="button" value="保存">
                                </div>
                            </div>
                            <div id="imgparent" class="Binding_pop_box_zg {yun:}if !$cert.old_check{/yun}none{yun:}/if{/yun}" style="width:90px;">
                                <dl>
                                    <dt style="position:relative">
									<div id="newbind" class="Binding_pop_box_msg_cont_new none">新</div>
									<img id="imgicon" src="{yun:}$cert.old_check{/yun}" width="40" height="40" />
									</dt>
                                    <dd style="padding-top:10px;">
                                        <a id="checka" class="bing_see_y" href="javascript:;" data_url="{yun:}$cert.old_check{/yun}" onclick="showpic(this)">查看原图</a>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
<div id="wxcontent" style=" display:none;">
<div id="wx_login_qrcode" class="wx_bdtck_pic">正在获取二维码...</div>
					 <div class="wx_bdtck_p">请使用微信扫描二维码绑定</div>
	</div>
        <!--弹出框 end-->
        <input type="hidden" id="linktel" value="{yun:}$lt.moblie{/yun}" />
        <input type="hidden" id="linkmail" value="{yun:}$lt.email{/yun}" />
        <input type="hidden" id="send" value="0" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script>
<script>
	layui.use(['layer'], function() {
		var layer = layui.layer,
			$ = layui.$;
	});	
	function showpic(obj){
		var url =	$(obj).attr('data_url');
		var picjson={
		  "data": [ {
			  "src": url, //原图地址
			  "thumb": url //缩略图地址
			}]
		}
		layer.photos({
			photos: picjson
			,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
		});
	}
	$(document).ready(function(){
		var setval;
		$.post('{yun:}url m=login c=wxlogin{/yun}',{t:1},function(data){
				if(data==0){
					$('#wx_login_qrcode').html('二维码获取失败..');
				}else{
					$('#wx_login_qrcode').html('<img src="'+data+'" width="180" height="180">');
					setval = setInterval("wxorderstatus()", 2000); 
				}
			});

	}); 

	function wxorderstatus() {  
		$.post('{yun:}url m=login c=getwxloginstatus{/yun}',{t:1},function(data){
			var data=eval('('+data+')');
			if(data.url!='' && data.msg!=''){
				layer.msg(data.msg, 2, 9,function(){window.location.href=data.url;});
			}else if(data.url){
				window.location.href=data.url;
			}
		});
	}
	
	function wxshow(){
		$.layer({
			type : 1,
			title : '绑定微信',
			border : [10 , 0.3 , '#000', true],
			area : ['300px','auto'],
			page : {dom :"#wxcontent"}
		});
	}
</script>
        {yun:}include file="$lietoustyle/footer.htm"{/yun}